package com.example.controller;

import com.example.service.impl.GetUserTokenImpl;
import lombok.RequiredArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/getUserToken")
@RequiredArgsConstructor
public class GetUserTokenController {
    private static final Logger log = LoggerFactory.getLogger(GetUserTokenController.class);
    private final GetUserTokenImpl getUserToken;

    @GetMapping
    public String getUserToken() {
        log.info("获取用户TOKEN");
        return getUserToken.getUserToken();
    }
}
